import { Draw } from "../../../Draw/Draw";
import { IKonva } from "../../../Interface/IKonva";

/**
 * stage 、 Group 右键菜单事件响应
 */

export function contextmenuHandle(
  e: IKonva.Event,
  draw: Draw,
  menuType: "stage" | "group"
) {
  e.cancelBubble = true;
  const contentmenu = draw.getContentMenu();
  contentmenu.show(e.evt, menuType);
}
